import Layout from "@/views/layout/index";

const studentRouter = {
  path: "/student",
  name: "student",
  component: Layout,
  meta: {
    title: "学员管理",
    icon: "iconfont icon-xueyuanguanli"
  },
  redirect: "/student/basis",
  children: [
    /* {
      path: "manage",
      name: "studentManage",
      component: () => import("@/views/student/manage"),
      meta: {
        title: "学员管理",
        icon: "iconfont icon-xueyuanguanli",
        api: ["student"],
        authority: ["list"]
      },
      checkedList: [],
      rights: [
        {
          value: "list",
          label: "列表"
        },
        {
          value: "own",
          label: "只看自己"
        },
        {
          value: "details",
          label: "详情"
        },
        {
          value: "edit",
          label: "编辑"
        },
        {
          value: "delete",
          label: "删除"
        }
      ]
    }, */
    {
      path: "basis",
      name: "studentBasis",
      component: () => import("@/views/student/basis"),
      meta: {
        title: "本科学员",
        api: ["student"],
        authority: [
          "own",
          "list",
          "create",
          "edit",
          "details",
          "delete",
          "import",
          "export"
        ]
      },
      checkedList: [],
      rights: [
        {
          value: "list",
          label: "列表"
        },
        {
          value: "own",
          label: "只看自己"
        },
        {
          value: "create",
          label: "添加"
        },
        {
          value: "details",
          label: "详情"
        },
        {
          value: "edit",
          label: "编辑"
        },
        {
          value: "delete",
          label: "删除"
        },
        {
          value: "import",
          label: "导入"
        },
        {
          value: "export",
          label: "导出"
        }
      ]
    },
    {
      path: "expert",
      name: "studentExpert",
      component: () => import("@/views/student/expert"),
      meta: {
        title: "专科学员",
        api: ["student"],
        authority: [
          "own",
          "list",
          "create",
          "edit",
          "details",
          "delete",
          "import",
          "export"
        ]
      },
      checkedList: [],
      rights: [
        {
          value: "list",
          label: "列表"
        },
        {
          value: "own",
          label: "只看自己"
        },
        {
          value: "create",
          label: "添加"
        },
        {
          value: "details",
          label: "详情"
        },
        {
          value: "edit",
          label: "编辑"
        },
        {
          value: "delete",
          label: "删除"
        },
        {
          value: "import",
          label: "导入"
        },
        {
          value: "export",
          label: "导出"
        }
      ]
    },
    {
      path: "info",
      name: "studentInfo",
      hidden: true,
      component: () => import("@/views/student/info"),
      meta: {
        title: "学员信息",
        api: ["student"],
        authority: [
          "own",
          "list",
          "create",
          "edit",
          "details",
          "delete",
          "import",
          "export"
        ]
      }
    }
  ]
};

export default studentRouter;
